package com.gegao.somethinginteresting.injects;

import android.content.Context;

import com.gegao.somethinginteresting.IntertstingApplication;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2016/5/8.
 */
@Module
public class ApplicationModule {
    private final IntertstingApplication application;

    public ApplicationModule(IntertstingApplication application) {
        this.application = application;
    }

    @Provides
    @Singleton
    Context provideApplicationContext() {
        return application;
    }
}
